<?php

$cache=new RCache(array(
  'server' => 'redis',
));


$cache->delete("key1");
$cache->delete("key2");
$cache->delete("key3");




$res=$cache->get("key1","value1");
print_r($res);



$res=$cache->get("key2",function(){
  return 1234;
});
print_r($res);



$res=$cache->get("key3",array(
  'ex'=>10,
  'value'=>function(){
    return "value3";
  }
));
print_r($res);

 ?>
